package h_factory.d_abstract;

/**
 * Created by wug on 2016/7/6 0006.
 */
public class Hero {
    private String name;
    private Skin skin;
    private Weapon weapon;

    public Hero(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Skin getSkin() {
        return skin;
    }

    public void setSkin(Skin skin) {
        this.skin = skin;
    }

    public Weapon getWeapon() {
        return weapon;
    }

    public void setWeapon(Weapon weapon) {
        this.weapon = weapon;
    }

    @Override
    public String toString() {
        return "英雄{" +
                "名称='" + name + '\'' +
                ", 皮肤=" + skin.getSkinName() +
                ", 武器=" + weapon.getWeaponName() +
                '}';
    }
}
